package com.EstateManager.Entity;

import java.util.HashSet;
import java.util.Set;

import javax.persistence.Transient;

import com.alibaba.fastjson.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;

/**
 * AbstractAdmin entity provides the base persistence definition of the Admin
 * entity. @author MyEclipse Persistence Tools
 */

@JsonIgnoreProperties(value = {"estateinfochecks"})
public abstract class AbstractAdmin implements java.io.Serializable {

	// Fields

	private Integer id;
	private String username;
	private String password;
	private String tel;
	private String cardNo;
	private String sex;
	private String realName;
	private Integer weight;
	private String nickName;
	private String email;
	
	@JSONField(serialize = false)
	private Set estateinfochecks = new HashSet(0);

	// Constructors

	/** default constructor */
	public AbstractAdmin() {
	}

	/** minimal constructor */
	public AbstractAdmin(String username, String password, String tel,
			String cardNo, String sex, String realName, Integer weight,
			String nickName, String email) {
		this.username = username;
		this.password = password;
		this.tel = tel;
		this.cardNo = cardNo;
		this.sex = sex;
		this.realName = realName;
		this.weight = weight;
		this.nickName = nickName;
		this.email = email;
	}

	/** full constructor */
	public AbstractAdmin(String username, String password, String tel,
			String cardNo, String sex, String realName, Integer weight,
			String nickName, String email, Set estateinfochecks) {
		this.username = username;
		this.password = password;
		this.tel = tel;
		this.cardNo = cardNo;
		this.sex = sex;
		this.realName = realName;
		this.weight = weight;
		this.nickName = nickName;
		this.email = email;
		this.estateinfochecks = estateinfochecks;
	}

	// Property accessors

	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getUsername() {
		return this.username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getPassword() {
		return this.password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getTel() {
		return this.tel;
	}

	public void setTel(String tel) {
		this.tel = tel;
	}

	public String getCardNo() {
		return this.cardNo;
	}

	public void setCardNo(String cardNo) {
		this.cardNo = cardNo;
	}

	public String getSex() {
		return this.sex;
	}

	public void setSex(String sex) {
		this.sex = sex;
	}

	public String getRealName() {
		return this.realName;
	}

	public void setRealName(String realName) {
		this.realName = realName;
	}

	public Integer getWeight() {
		return this.weight;
	}

	public void setWeight(Integer weight) {
		this.weight = weight;
	}

	public String getNickName() {
		return this.nickName;
	}

	public void setNickName(String nickName) {
		this.nickName = nickName;
	}

	public String getEmail() {
		return this.email;
	}

	public void setEmail(String email) {
		this.email = email;
	}
	
	
	public Set getEstateinfochecks() {
		return this.estateinfochecks;
	}

	
	public void setEstateinfochecks(Set estateinfochecks) {
		this.estateinfochecks = estateinfochecks;
	}

}